﻿using AutoMapper;
using WarehouseManagement.Domain.DTO.Allocate;
using WarehouseManagement.Domain.DTO.OutvoundRequests;
using WarehouseManagement.Domain.DTO.RequestTransfer;
using WarehouseManagement.Domain.DTO.ShipApply;
using WarehouseManagement.Domain.DTO.Warehouse;
using WarehouseManagement.Domain.DTO.WarehouseSApp;
using WarehouseManagement.Domain.DTO.WarehouseType;
using WarehouseManagement.Domain.Entity;

namespace WarehouseManagement.Dtos
{
    public class AreaProFile : Profile
    {

        public AreaProFile()
        {
            //仓库新增
            CreateMap<Warehouse, AddWarehouseDTO>().ReverseMap();
            //仓库修改
            CreateMap<Warehouse, UpdFanWarehouseDTO>().ReverseMap();

            //仓库分类添加
            CreateMap<WarehouseCategory, AddWareCategoryDto>().ReverseMap();
            //仓库分类修改
            CreateMap<WarehouseCategory, UptWareHouseTypeDto>().ReverseMap();
            CreateMap<WarehouseSApp, AddWarehouseSAppDto>().ReverseMap();//入库申请添加
            CreateMap<WarehouseSApp, UpdWarehouseSAppDto>().ReverseMap();//入库申请修改
            //出库新增
            //出库申请新增
            CreateMap<OutboundRequest, OutboundRequestCreateDto>().ReverseMap();
            //出库申请修改
            CreateMap<OutboundRequest, OutboundRequestUpdateDto>().ReverseMap();

            //发货申请添加
            CreateMap<ShippRequestApp, AddShipApplyDTO>().ReverseMap();
            //发货申请修改
            CreateMap<ShippRequestApp,UptShipDTO>().ReverseMap();

            #region 仓库调拨申请
            CreateMap<RequestTransfers, AddRequestTransferDto>().ReverseMap();
            CreateMap<RequestTransfers, FanRequestTransferDto>().ReverseMap();
            #endregion
            #region 仓库调拨
            CreateMap<Allocate, AddAllocateDto>().ReverseMap();
            CreateMap<Allocate, UpdAllocateDto>().ReverseMap();
            #endregion

        }

    }
}
